#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from database import db_manager

def check_accounts():
    """检查账号信息"""
    result = db_manager.execute_query('SELECT id, username, password FROM accounts')
    print('账号信息:')
    for r in result:
        print(f'ID: {r["id"]}, 用户名: {r["username"]}, 密码: {r["password"]}')
    return result

if __name__ == '__main__':
    check_accounts()